package br.ucb.rest.persistencia.vo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name="rst_tipo_status")
@NamedQueries({
	@NamedQuery(name="TipoStatusVO.recuperarTodos", 
		query="SELECT a FROM TipoStatusVO a WHERE a.inSituacao = true " +
			"ORDER BY a.noStatus")
})
public class TipoStatusVO implements Serializable {
	private static final long serialVersionUID = -5511825919844167203L;
	
	@Id
	@Column(name="nu_status")
	private Integer nuStatus;
	@Column(name="no_status")
	private String noStatus;
	@Column(name="in_situacao")
	private Boolean inSituacao;
	
	public TipoStatusVO() {
		super();
	}
	public TipoStatusVO(Integer nuStatus) {
		super();
		this.nuStatus = nuStatus;
	}
	
	public Integer getNuStatus() {
		return nuStatus;
	}
	public void setNuStatus(Integer nuStatus) {
		this.nuStatus = nuStatus;
	}
	public String getNoStatus() {
		return noStatus;
	}
	public void setNoStatus(String noStatus) {
		this.noStatus = noStatus;
	}
	public Boolean getInSituacao() {
		return inSituacao;
	}
	public void setInSituacao(Boolean inSituacao) {
		this.inSituacao = inSituacao;
	}
	
	
	
}
